package com.esdk.interfaces;

import com.esdk.esdk;

public interface Callback2<T0, T1> {
  void call(T0 t0,T1 t1) throws Exception;

  default void invoke(T0 t0,T1 t1) {
    try{
      call(t0,t1);
    }catch (Exception e){
      throw esdk.tool.wrapThrowble(e);
    }
  }
}
